﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;

namespace DCTAccess.Business.Member
{
    public class MemberCollection : CollectionBase
    {
       public MemberCollection() { }

       public MemberCollection(DataTable memberDatatable)
        {
            foreach (DataRow memberInfo in memberDatatable.Rows)
            {
                Add(new Member(memberInfo));
            }
        }

        public int Add(Member member)
        {
            return base.List.Add(member);
        }

        public int IndexOf(Member member)
        {
            return base.List.IndexOf(member);
        }

        public Member this[int index]
        {
            get
            {
                return (Member)base.List[index];
            }
        }       
    }
}
